package cn.humaohua.study.yanmo_design_pattern.ch15.v2;

public abstract class Component {
    public abstract void printStruct(String preStr);

    public void addChild(Component child) {
        throw new UnsupportedOperationException("对象不支持这个功能");
    }

    public void removeChild(Component child) {
        throw new UnsupportedOperationException("对象不支持这个功能");
    }

    public void getChildren(int index) {
        throw new UnsupportedOperationException("对象不支持这个功能");
    }
}
